﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IBupro.Models.StudentPlanModel>" %>
<%@ Import Namespace="IBupro.Extensions" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	<%: Html.Translate("editStudentPlan") %>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2><%: Html.Translate("editStudentPlan") %></h2>

    <% using (Html.BeginForm()) {%>
        <%: Html.ValidationSummary(true) %>

        <fieldset>     
           <div class="editor-label">
                <label for="Name"><%: Html.Translate("name") %></label>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Name) %>
                <%: Html.ValidationMessageFor(model => model.Name) %>
            </div>

            <div class="editor-label">
                <label for="Name"><%: Html.Translate("shortcut") %></label>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Shortcut) %>
                <%: Html.ValidationMessageFor(model => model.Shortcut) %>
            </div>

            <div class="editor-label">
                <%: Html.Translate("studentFields") %>
            </div>
            <div class="editor-field">
                <%: Html.ListBox("SelectedFields", Model.MultiSelectListStudentFields(ViewData["selected_fields"] as string[]), new { @class = "select" })%>
            </div>


            <div class="editor-label">
                <%: Html.Translate("subjects") %>
            </div>
            <div class="editor-field">
 
                <%: Html.ListBox("SelectedSubjects", Model.MultiSelectListSubjects(ViewData["selected_subjects"] as string[]), new { @class = "select" })%>
            </div>

            <p>
                <input type="submit" value="<%: Html.Translate("save") %>" />
            </p>
        </fieldset>

    <% } %>

    <div>
        <%: Html.ActionLink(Html.Translate("backToList"), "Index") %>
    </div>

</asp:Content>

